package com.cs.study.homework._0229;

import java.util.Scanner;

public class Demo10 {
    public static void main(String[] args) {
        System.out.println("请输入一个字符串");
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        StringBuffer sb = new StringBuffer(s);
        String s2 = sb.reverse().toString();

        if (s.equals(s2)) {
            System.out.println("对称");
        } else {
            System.out.println("不对称");
        }
    }
}

